import moment from 'moment'

function TimeFormat() {
  // 日期转换
  var mystartDateTime = moment(this.list.startDateTime).format('yyyy-MM-DD HH:mm:ss')
  var myendDateTime = moment(this.list.endDateTime).format('yyyy-MM-DD HH:mm:ss')
  var myflightStartTime = moment(this.list.flightStartTime).format('yyyy-MM-DD HH:mm:ss')
  var myflightEndTime = moment(this.list.flightEndTime).format('yyyy-MM-DD HH:mm:ss')

  this.list.startDateTime = mystartDateTime
  this.list.endDateTime = myendDateTime
  this.list.flightStartTime = myflightStartTime
  this.list.flightEndTime = myflightEndTime
}
